package com.example.campuslink.commen.http

import com.google.gson.annotations.SerializedName

data class CompletionResponse(
    val choices: List<Choice>?
) {
    data class Choice(
        val message: Message
    ) {
        data class Message(
            val content: String,
            @SerializedName("reasoning_content") val reasoningContent: String?
        )
    }

    val content: String get() = choices?.firstOrNull()?.message?.content ?: ""
    val reasoning: String get() = choices?.firstOrNull()?.message?.reasoningContent ?: ""
}

